import {createStore,applyMiddleware} from "redux"
import reducer from "./reducer"
import logger from "redux-logger"
import createSagaMiddleWare from "redux-saga"
import rootSaga from "./saga/index"
import { composeWithDevTools } from 'redux-devtools-extension';

const sagaMiddleWare = createSagaMiddleWare()


const store = createStore(reducer,composeWithDevTools(applyMiddleware(logger,sagaMiddleWare)))
sagaMiddleWare.run(rootSaga)

export default store

